//
//  HsDateUtil.h
//  CRM-iPhone
//
//  Created by Mead on 12/18/13.
//  Copyright (c) 2013 hundsun. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface HsDateUtil : NSObject

+(BOOL)sameDay:(NSDate*)d1 date:(NSDate*)d2;
//计算日期差多少天
//TODO:函数重命名subtractDay日期相减
+(NSInteger)calculateDay:(NSDate*)d1 date:(NSDate*)d2;

//日期相减,返回分钟
+(NSInteger)subtractMin:(NSDate*)d1 date:(NSDate*)d2;

//将<字符串>转为<日期>
+(NSDate*) dateFromString:(NSString*)string;

//将<字符串>转为<日期>
+(NSString*) timeFromDate:(NSString*)date;

+(NSString*) formateDateFromString:(NSString*)date;

@end
